package com.techstar.api.pojo.public_transport;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.techstar.common.jackson.StrDateDeserializer;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Getter
@Setter
@Entity
@ToString
@Table(name = "gis_public_transport_road_traffic_event")
@org.hibernate.annotations.Table(appliesTo = "gis_public_transport_road_traffic_event", comment="gis 道路事件信息")
public class RoadTrafficEvent {

    @Id
    @Column(columnDefinition="varchar(100) COMMENT '事件标识'")
    private String event_id;
    @Column(columnDefinition="varchar(100) COMMENT '事件分类编码'")
    private String event_category;
    @Column(columnDefinition="varchar(100) COMMENT '事件类型'")
    private String event_type;
    @Column(columnDefinition="varchar(100) COMMENT '事件内容'")
    private String content;

    @Column(columnDefinition="varchar(100) COMMENT '所属行政区域名称'")
    private String dist_name;
    @Column(columnDefinition="varchar(100) COMMENT '事件范围gps'")
    private String coordinates;
    @Column(columnDefinition="varchar(100) COMMENT '道路名称'")
    private String road_name;
    @Column(columnDefinition="varchar(100) COMMENT '道路类型'")
    private String road_type;
    @Column(columnDefinition="varchar(100) COMMENT '事件状态'")
    private String event_status;
    @Column(columnDefinition="varchar(100) COMMENT '上报事件类型'")
    private String source_type;
    @Column(columnDefinition="varchar(100) COMMENT '事件源头语义化'")
    private String semantic;
    @Column(columnDefinition="varchar(100) COMMENT '影响车道描述'")
    private String lane_desc;

    @Column(columnDefinition="varchar(100) COMMENT '开始时间'")
    @JsonDeserialize(using = StrDateDeserializer.class)
    private String starttime;
    @Column(columnDefinition="varchar(100) COMMENT '结束时间'")
    @JsonDeserialize(using = StrDateDeserializer.class)
    private String endtime;

    @Column(columnDefinition="varchar(100) COMMENT '插入时间'")
    @JsonDeserialize(using = StrDateDeserializer.class)
    private String Insert_time;


}
